R Shiny is used for creaing interactive web applications in R.
It isn’t really for us, it’s for others to interactively explore our data.
We can also use R Shiny to analyze data and create graphics and summaries - but the point is it is to be shared with others on the internet.
As the designers of an R Shiny app, we design it to allow other uses to select predefined options or filters.
I have access to earthquake data in Southern California
I can create a Shiny app so my users could select a specific time frame and map the earthquakes.
They might adjust their choices to see data from different years, or click on the map to get different information about a particular are.
Your users can change what they see by interacting with the web application directly. This could be through various methods
If your data updates, Shiny can automatically update the data. This means users always see the most current information.
You can design your Shiny app to look and behave exactly how you want.
Select File-New File-Shiny Web App
Choose a name, choose a single file (app.R when just starting out), choosea location on your local drive
There should now be a new folder with an RStudio created demo file in it. Click on “Run App”
If you run the app (green triangle icon on the upper right) the default Old Faithful Shiny app should pop up
You can open it in your browser to get a better look
https://shiny.posit.co/ Homepage
https://github.com/rstudio/shiny Mastering Shiny (online text)
## ### Remainder of shiny1_ui_only.R
shinyApp(ui = ui, server = server) runs and we have a Shiny apprunGist("8ad7b367f0d4d9947a94c5387900b2bd") make sure your Shiny app has a standard name like app.R and not my non-standard ones.